<?php
include_once '../controlador_bd/CConexion.php';

$paciente = $_GET['paciente'];

$objConexion = new CConexion;
$objConexion -> conectar();

$consulta = "SELECT * FROM paciente WHERE (nombrepa|| ' ' || apellidopa ) = '" . $paciente . "'";

if (pg_affected_rows(pg_query($consulta)) != 0)
	echo "true";
else
	echo "false";
?>